<?php
include_once 'db_config.php';
function escape(&$s){
		$s = mysql_real_escape_string($s);
}

function trim_value(&$value){ 
	$value = trim($value); 
}

array_walk_recursive($_POST,'trim_value');
array_walk_recursive($_POST,'escape');
array_walk_recursive($_GET,'escape');

if(isset($_GET['edit'])){
	$tmp = mysql_query("SELECT * FROM `rpa_1b` WHERE `id` = ".$_GET['edit']);
	$getData = mysql_fetch_assoc($tmp);
}

$assessment_kind_list = array("Residential"=>0.2,"Agricultural"=>0.4,"Commercial"=>0.5,"Industrial"=>0.5,"Mineral"=>0.5,"Timberland"=>0.2);

$edit = (isset($_GET['edit']))?$_GET['edit']:0;

$assessment_kind = (isset($_POST['assessment_kind']))?$_POST['assessment_kind']:(isset($getData['assessment_kind'])?$getData['assessment_kind']:"");
$arp_no = (isset($_POST['arp_no']))?$_POST['arp_no']:(isset($getData['arp_no'])?$getData['arp_no']:"");
$pin = (isset($_POST['pin']))?$_POST['pin']:(isset($getData['pin'])?$getData['pin']:"");
$owner = (isset($_POST['owner']))?$_POST['owner']:(isset($getData['owner'])?$getData['owner']:"");
$owner_address = (isset($_POST['owner_address']))?$_POST['owner_address']:(isset($getData['owner_address'])?$getData['owner_address']:"");
$owner_tel = (isset($_POST['owner_tel']))?$_POST['owner_tel']:(isset($getData['owner_tel'])?$getData['owner_tel']:"");
$admin = (isset($_POST['admin']))?$_POST['admin']:(isset($getData['admin'])?$getData['admin']:"");
$admin_address = (isset($_POST['admin_address']))?$_POST['admin_address']:(isset($getData['admin_address'])?$getData['admin_address']:"");
$admin_tel = (isset($_POST['admin_tel']))?$_POST['admin_tel']:(isset($getData['admin_tel'])?$getData['admin_tel']:"");
$bldg_street = (isset($_POST['bldg_street']))?$_POST['bldg_street']:(isset($getData['bldg_street'])?$getData['bldg_street']:"");
$bldg_brgy = (isset($_POST['bldg_brgy']))?$_POST['bldg_brgy']:(isset($getData['bldg_brgy'])?$getData['bldg_brgy']:"");
$bldg_municipality = (isset($_POST['bldg_municipality']))?$_POST['bldg_municipality']:(isset($getData['bldg_municipality'])?$getData['bldg_municipality']:"");
$bldg_city = (isset($_POST['bldg_city']))?$_POST['bldg_city']:(isset($getData['bldg_city'])?$getData['bldg_city']:"");
$landref_owner = (isset($_POST['landref_owner']))?$_POST['landref_owner']:(isset($getData['landref_owner'])?$getData['landref_owner']:"");
$landref_octno = (isset($_POST['landref_octno']))?$_POST['landref_octno']:(isset($getData['landref_octno'])?$getData['landref_octno']:"");
$landref_surveyno = (isset($_POST['landref_surveyno']))?$_POST['landref_surveyno']:(isset($getData['landref_surveyno'])?$getData['landref_surveyno']:"");
$landref_lotno = (isset($_POST['landref_lotno']))?$_POST['landref_lotno']:(isset($getData['landref_lotno'])?$getData['landref_lotno']:"");
$landref_blkno = (isset($_POST['landref_blkno']))?$_POST['landref_blkno']:(isset($getData['landref_blkno'])?$getData['landref_blkno']:"");
$landref_tdnno = (isset($_POST['landref_tdnno']))?$_POST['landref_tdnno']:(isset($getData['landref_tdnno'])?$getData['landref_tdnno']:"");
$landref_area = (isset($_POST['landref_area']))?$_POST['landref_area']:(isset($getData['landref_area'])?$getData['landref_area']:"");
$struct_foundation1 = (isset($_POST['struct_foundation1']))?$_POST['struct_foundation1']:(isset($getData['struct_foundation1'])?$getData['struct_foundation1']:"");
$struct_foundation2 = (isset($_POST['struct_foundation2']))?$_POST['struct_foundation2']:(isset($getData['struct_foundation2'])?$getData['struct_foundation2']:"");
$struct_col1 = (isset($_POST['struct_col1']))?$_POST['struct_col1']:(isset($getData['struct_col1'])?$getData['struct_col1']:"");
$struct_col2 = (isset($_POST['struct_col2']))?$_POST['struct_col2']:(isset($getData['struct_col2'])?$getData['struct_col2']:"");
$struct_beam1 = (isset($_POST['struct_beam1']))?$_POST['struct_beam1']:(isset($getData['struct_beam1'])?$getData['struct_beam1']:"");
$struct_beam2 = (isset($_POST['struct_beam2']))?$_POST['struct_beam2']:(isset($getData['struct_beam2'])?$getData['struct_beam2']:"");
$struct_trussframing1 = (isset($_POST['struct_trussframing1']))?$_POST['struct_trussframing1']:(isset($getData['struct_trussframing1'])?$getData['struct_trussframing1']:"");
$struct_trussframing2 = (isset($_POST['struct_trussframing2']))?$_POST['struct_trussframing2']:(isset($getData['struct_trussframing2'])?$getData['struct_trussframing2']:"");
$struct_roof1 = (isset($_POST['struct_roof1']))?$_POST['struct_roof1']:(isset($getData['struct_roof1'])?$getData['struct_roof1']:"");
$struct_roof2 = (isset($_POST['struct_roof2']))?$_POST['struct_roof2']:(isset($getData['struct_roof2'])?$getData['struct_roof2']:"");
$struct_exterior1 = (isset($_POST['struct_exterior1']))?$_POST['struct_exterior1']:(isset($getData['struct_exterior1'])?$getData['struct_exterior1']:"");
$struct_exterior2 = (isset($_POST['struct_exterior2']))?$_POST['struct_exterior2']:(isset($getData['struct_exterior2'])?$getData['struct_exterior2']:"");
$struct_flooring1 = (isset($_POST['struct_flooring1']))?$_POST['struct_flooring1']:(isset($getData['struct_flooring1'])?$getData['struct_flooring1']:"");
$struct_flooring2 = (isset($_POST['struct_flooring2']))?$_POST['struct_flooring2']:(isset($getData['struct_flooring2'])?$getData['struct_flooring2']:"");
$struct_doors1 = (isset($_POST['struct_doors1']))?$_POST['struct_doors1']:(isset($getData['struct_doors1'])?$getData['struct_doors1']:"");
$struct_doors2 = (isset($_POST['struct_doors2']))?$_POST['struct_doors2']:(isset($getData['struct_doors2'])?$getData['struct_doors2']:"");
$struct_ceiling1 = (isset($_POST['struct_ceiling1']))?$_POST['struct_ceiling1']:(isset($getData['struct_ceiling1'])?$getData['struct_ceiling1']:"");
$struct_ceiling2 = (isset($_POST['struct_ceiling2']))?$_POST['struct_ceiling2']:(isset($getData['struct_ceiling2'])?$getData['struct_ceiling2']:"");
$struct_windows1 = (isset($_POST['struct_windows1']))?$_POST['struct_windows1']:(isset($getData['struct_windows1'])?$getData['struct_windows1']:"");
$struct_windows2 = (isset($_POST['struct_windows2']))?$_POST['struct_windows2']:(isset($getData['struct_windows2'])?$getData['struct_windows2']:"");
$struct_stairs1 = (isset($_POST['struct_stairs1']))?$_POST['struct_stairs1']:(isset($getData['struct_stairs1'])?$getData['struct_stairs1']:"");
$struct_stairs2 = (isset($_POST['struct_stairs2']))?$_POST['struct_stairs2']:(isset($getData['struct_stairs2'])?$getData['struct_stairs2']:"");
$struct_partition1 = (isset($_POST['struct_partition1']))?$_POST['struct_partition1']:(isset($getData['struct_partition1'])?$getData['struct_partition1']:"");
$struct_partition2 = (isset($_POST['struct_partition2']))?$_POST['struct_partition2']:(isset($getData['struct_partition2'])?$getData['struct_partition2']:"");
$struct_wallfinish1 = (isset($_POST['struct_wallfinish1']))?$_POST['struct_wallfinish1']:(isset($getData['struct_wallfinish1'])?$getData['struct_wallfinish1']:"");
$struct_wallfinish2 = (isset($_POST['struct_wallfinish2']))?$_POST['struct_wallfinish2']:(isset($getData['struct_wallfinish2'])?$getData['struct_wallfinish2']:"");
$struct_electrical1 = (isset($_POST['struct_electrical1']))?$_POST['struct_electrical1']:(isset($getData['struct_electrical1'])?$getData['struct_electrical1']:"");
$struct_electrical2 = (isset($_POST['struct_electrical2']))?$_POST['struct_electrical2']:(isset($getData['struct_electrical2'])?$getData['struct_electrical2']:"");
$struct_toilet1 = (isset($_POST['struct_toilet1']))?$_POST['struct_toilet1']:(isset($getData['struct_toilet1'])?$getData['struct_toilet1']:"");
$struct_toilet2 = (isset($_POST['struct_toilet2']))?$_POST['struct_toilet2']:(isset($getData['struct_toilet2'])?$getData['struct_toilet2']:"");
$struct_plumbing1 = (isset($_POST['struct_plumbing1']))?$_POST['struct_plumbing1']:(isset($getData['struct_plumbing1'])?$getData['struct_plumbing1']:"");
$struct_plumbing2 = (isset($_POST['struct_plumbing2']))?$_POST['struct_plumbing2']:(isset($getData['struct_plumbing2'])?$getData['struct_plumbing2']:"");
$struct_fixtures1 = (isset($_POST['struct_fixtures1']))?$_POST['struct_fixtures1']:(isset($getData['struct_fixtures1'])?$getData['struct_fixtures1']:"");
$struct_fixtures2 = (isset($_POST['struct_fixtures2']))?$_POST['struct_fixtures2']:(isset($getData['struct_fixtures2'])?$getData['struct_fixtures2']:"");
$struct_others1 = (isset($_POST['struct_others1']))?$_POST['struct_others1']:(isset($getData['struct_others1'])?$getData['struct_others1']:"");
$struct_others2 = (isset($_POST['struct_others2']))?$_POST['struct_others2']:(isset($getData['struct_others2'])?$getData['struct_others2']:"");
$struct_type = (isset($_POST['struct_type']))?$_POST['struct_type']:(isset($getData['struct_type'])?$getData['struct_type']:"");
$struct_value = (isset($_POST['struct_value']))?$_POST['struct_value']:(isset($getData['struct_value'])?$getData['struct_value']:"");
$struct_classification = (isset($_POST['struct_classification']))?$_POST['struct_classification']:(isset($getData['struct_classification'])?$getData['struct_classification']:"");
$struct_permit = (isset($_POST['struct_permit']))?$_POST['struct_permit']:(isset($getData['struct_permit'])?$getData['struct_permit']:"");
$struct_age = (isset($_POST['struct_age']))?$_POST['struct_age']:(isset($getData['struct_age'])?$getData['struct_age']:"");
$struct_noofstoreys = (isset($_POST['struct_noofstoreys']))?$_POST['struct_noofstoreys']:(isset($getData['struct_noofstoreys'])?$getData['struct_noofstoreys']:"");
$struct_actualuse = (isset($_POST['struct_actualuse']))?$_POST['struct_actualuse']:(isset($getData['struct_actualuse'])?$getData['struct_actualuse']:"");
$struct_dateconstructed = (isset($_POST['struct_dateconstructed']))?$_POST['struct_dateconstructed']:(isset($getData['struct_dateconstructed'])?$getData['struct_dateconstructed']:"");
$struct_datecompleted = (isset($_POST['struct_datecompleted']))?$_POST['struct_datecompleted']:(isset($getData['struct_datecompleted'])?$getData['struct_datecompleted']:"");
$struct_occupied = (isset($_POST['struct_occupied']))?$_POST['struct_occupied']:(isset($getData['struct_occupied'])?$getData['struct_occupied']:"");
$struct_areaofgroundfloor = (isset($_POST['struct_areaofgroundfloor']))?$_POST['struct_areaofgroundfloor']:(isset($getData['struct_areaofgroundfloor'])?$getData['struct_areaofgroundfloor']:"");
$struct_totalbldgarea = (isset($_POST['struct_totalbldgarea']))?$_POST['struct_totalbldgarea']:(isset($getData['struct_totalbldgarea'])?$getData['struct_totalbldgarea']:"");
$taxability = (isset($_POST['taxability']))?$_POST['taxability']:(isset($getData['taxability'])?$getData['taxability']:"");
$tax_effectivity = (isset($_POST['tax_effectivity']))?$_POST['tax_effectivity']:(isset($getData['tax_effectivity'])?$getData['tax_effectivity']:"");
$previous_owner = (isset($_POST['previous_owner']))?$_POST['previous_owner']:(isset($getData['previous_owner'])?$getData['previous_owner']:"");
$previous_assessed_value = (isset($_POST['previous_assessed_value']))?$_POST['previous_assessed_value']:(isset($getData['previous_assessed_value'])?$getData['previous_assessed_value']:"");

$market_value = $struct_value*$struct_totalbldgarea;

if(isset($_POST['save_rpa_1b'])){
	if($edit){
		$query = "UPDATE `rpa_1b`
			SET `arp_no` = '".$arp_no."',
			`pin` = '".$pin."',
			`owner` = '".$owner."',
			`owner_address` = '".$owner_address."',
			`owner_tel` = '".$owner_tel."',
			`admin` = '".$admin."',
			`admin_address` = '".$admin_address."',
			`admin_tel` = '".$admin_tel."',
			`bldg_street` = '".$bldg_street."',
			`bldg_brgy` = '".$bldg_brgy."',
			`bldg_municipality` = '".$bldg_municipality."',
			`bldg_city` = '".$bldg_city."',
			`landref_owner` = '".$landref_owner."',
			`landref_octno` = '".$landref_octno."',
			`landref_surveyno` = '".$landref_surveyno."',
			`landref_lotno` = '".$landref_lotno."',
			`landref_blkno` = '".$landref_blkno."',
			`landref_tdnno` = '".$landref_tdnno."',
			`landref_area` = '".$landref_area."',
			`struct_foundation1` = '".$struct_foundation1."',
			`struct_foundation2` = '".$struct_foundation2."',
			`struct_col1` = '".$struct_col1."',
			`struct_col2` = '".$struct_col2."',
			`struct_beam1` = '".$struct_beam1."',
			`struct_beam2` = '".$struct_beam2."',
			`struct_trussframing1` = '".$struct_trussframing1."',
			`struct_trussframing2` = '".$struct_trussframing2."',
			`struct_roof1` = '".$struct_roof1."',
			`struct_roof2` = '".$struct_roof2."',
			`struct_exterior1` = '".$struct_exterior1."',
			`struct_exterior2` = '".$struct_exterior2."',
			`struct_flooring1` = '".$struct_flooring1."',
			`struct_flooring2` = '".$struct_flooring2."',
			`struct_doors1` = '".$struct_doors1."',
			`struct_doors2` = '".$struct_doors2."',
			`struct_ceiling1` = '".$struct_ceiling1."',
			`struct_ceiling2` = '".$struct_ceiling2."',
			`struct_windows1` = '".$struct_windows1."',
			`struct_windows2` = '".$struct_windows2."',
			`struct_stairs1` = '".$struct_stairs1."',
			`struct_stairs2` = '".$struct_stairs2."',
			`struct_partition1` = '".$struct_partition1."',
			`struct_partition2` = '".$struct_partition2."',
			`struct_wallfinish1` = '".$struct_wallfinish1."',
			`struct_wallfinish2` = '".$struct_wallfinish2."',
			`struct_electrical1` = '".$struct_electrical1."',
			`struct_electrical2` = '".$struct_electrical2."',
			`struct_toilet1` = '".$struct_toilet1."',
			`struct_toilet2` = '".$struct_toilet2."',
			`struct_plumbing1` = '".$struct_plumbing1."',
			`struct_plumbing2` = '".$struct_plumbing2."',
			`struct_fixtures1` = '".$struct_fixtures1."',
			`struct_fixtures2` = '".$struct_fixtures2."',
			`struct_others1` = '".$struct_others1."',
			`struct_others2` = '".$struct_others2."',
			`struct_type` = '".$struct_type."',
			`struct_value` = '".$struct_value."',
			`struct_classification` = '".$struct_classification."',
			`struct_permit` = '".$struct_permit."',
			`struct_age` = '".$struct_age."',
			`struct_noofstoreys` = '".$struct_noofstoreys."',
			`struct_actualuse` = '".$struct_actualuse."',
			`struct_dateconstructed` = '".$struct_dateconstructed."',
			`struct_datecompleted` = '".$struct_datecompleted."',
			`struct_occupied` = '".$struct_occupied."',
			`struct_areaofgroundfloor` = '".$struct_areaofgroundfloor."',
			`struct_totalbldgarea` = '".$struct_totalbldgarea."',
			`assessment_kind` = '".$assessment_kind."',
			`taxability` = '".$taxability."',
			`tax_effectivity` = '".$tax_effectivity."',
			`previous_owner` = '".$previous_owner."',
			`previous_assessed_value` = '".$previous_assessed_value."'
			WHERE `id` = ".$edit.";";
	}else {
		$query = "INSERT INTO `rpa_1b` (`arp_no`,`pin`,`owner`,`owner_address`,`owner_tel`,`admin`,`admin_address`,
		`admin_tel`,`bldg_street`,`bldg_brgy`,`bldg_municipality`,`bldg_city`,
		`landref_owner`,`landref_octno`,`landref_surveyno`,`landref_lotno`,
		`landref_blkno`,`landref_tdnno`,`landref_area`,`struct_foundation1`,
		`struct_foundation2`,`struct_col1`,`struct_col2`,`struct_beam1`,
		`struct_beam2`,`struct_trussframing1`,`struct_trussframing2`,`struct_roof1`,
		`struct_roof2`,`struct_exterior1`,`struct_exterior2`,`struct_flooring1`,
		`struct_flooring2`,`struct_doors1`,`struct_doors2`,`struct_ceiling1`,
		`struct_ceiling2`,`struct_windows1`,`struct_windows2`,`struct_stairs1`,
		`struct_stairs2`,`struct_partition1`,`struct_partition2`,`struct_wallfinish1`,
		`struct_wallfinish2`,`struct_electrical1`,`struct_electrical2`,`struct_toilet1`,
		`struct_toilet2`,`struct_plumbing1`,`struct_plumbing2`,`struct_fixtures1`,`struct_fixtures2`,
		`struct_others1`,`struct_others2`,`struct_type`,`struct_value`,`struct_classification`,`struct_permit`,
		`struct_age`,`struct_noofstoreys`,`struct_actualuse`,`struct_dateconstructed`,`struct_datecompleted`,
		`struct_occupied`,`struct_areaofgroundfloor`,`struct_totalbldgarea`,`assessment_kind`,`taxability`,`tax_effectivity`,`previous_owner`,`previous_assessed_value`) VALUES
		('".$arp_no."',
		'".$pin."',
		'".$owner."',
		'".$owner_address."',
		'".$owner_tel."',
		'".$admin."',
		'".$admin_address."',
		'".$admin_tel."',
		'".$bldg_street."',
		'".$bldg_brgy."',
		'".$bldg_municipality."',
		'".$bldg_city."',
		'".$landref_owner."',
		'".$landref_octno."',
		'".$landref_surveyno."',
		'".$landref_lotno."',
		'".$landref_blkno."',
		'".$landref_tdnno."',
		'".$landref_area."',
		'".$struct_foundation1."',
		'".$struct_foundation2."',
		'".$struct_col1."',
		'".$struct_col2."',
		'".$struct_beam1."',
		'".$struct_beam2."',
		'".$struct_trussframing1."',
		'".$struct_trussframing2."',
		'".$struct_roof1."',
		'".$struct_roof2."',
		'".$struct_exterior1."',
		'".$struct_exterior2."',
		'".$struct_flooring1."',
		'".$struct_flooring2."',
		'".$struct_doors1."',
		'".$struct_doors2."',
		'".$struct_ceiling1."',
		'".$struct_ceiling2."',
		'".$struct_windows1."',
		'".$struct_windows2."',
		'".$struct_stairs1."',
		'".$struct_stairs2."',
		'".$struct_partition1."',
		'".$struct_partition2."',
		'".$struct_wallfinish1."',
		'".$struct_wallfinish2."',
		'".$struct_electrical1."',
		'".$struct_electrical2."',
		'".$struct_toilet1."',
		'".$struct_toilet2."',
		'".$struct_plumbing1."',
		'".$struct_plumbing2."',
		'".$struct_fixtures1."',
		'".$struct_fixtures2."',
		'".$struct_others1."',
		'".$struct_others2."',
		'".$struct_type."',
		'".$struct_value."',
		'".$struct_classification."',
		'".$struct_permit."',
		'".$struct_age."',
		'".$struct_noofstoreys."',
		'".$struct_actualuse."',
		'".$struct_dateconstructed."',
		'".$struct_datecompleted."',
		'".$struct_occupied."',
		'".$struct_areaofgroundfloor."',
		'".$struct_totalbldgarea."',
		'".$assessment_kind."',
		'".$taxability."',
		'".$tax_effectivity."',
		'".$previous_owner."',
		'".$previous_assessed_value."')";
	}
	if(mysql_query($query)){
		$result = "SAVE SUCCESS";
		$insert_id = mysql_insert_id();
		if(!empty($insert_id)) header("Location: FAAS_building.php?edit=".mysql_insert_id());
	}
	else {
		$result = "SAVE FAILED";
	}
}
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Real Property and Business Permit</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="styles.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="nivo-slider.css" type="text/css" media="screen" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">

</script>
</head>
<body>
<div id="bg">
<div id="logo">
<img src="images/logo_and_name.png" alt="" width="305" height="78" />
</div>
<div id="main">
<div id="out"><h3><p align="right"><a href="Loginattempt.php">Home</a></p></h3></div>
<!-- header begins -->

    <div id="buttons">
		<ul>
			<li class="first"><a href="Loginattempt.php"  title="">Home</a></li>	<li><a href="Loginattempt.php" title="">User List</a></li>
			<li><a href="Loginattempt.php" title="">Business</a></li>
			<li><a href="Loginattempt.php" title="">Real Property</a></li>
		<li><a href="userverify.php" title="">Verify User</a></li>
			<li><a href="Loginattempt.php" title="">Contact</a></li>
		</ul></div>
<!-- header ends -->
<!-- content begins -->
<div id="content_bg">
  <div class="container">
    	<div class="box">
          	<form action="" method="post">
<div class="inside">
          	  <div class="row-2 forms">
     	<div align="right"><input type="submit" name="save_rpa_1b" value="Save" /></div>
        <!-- BODY -->
			<strong>TAX DECLARATION OF REAL PROPERTY</strong><br>
            
            <table width="100%" border="0">
  <tr>
    <td colspan="2">TD No.<input type="text" name="td_no" id="td_no"></td>
    <td width="50%">Property Identification No.<input type="text" name="prop_idno" id="prop_idno"></td>
  </tr>
  <tr>
    <td colspan="2"> Owner<input type="text" name="owner" id="owner"></td>
    <td>T.I.N.<input type="text" name="tin" id="tin"></td>
  </tr>
  <tr>
    <td colspan="2">Address<input type="text" name="address" id="owner3"></td>
    <td>Telephone No.<input type="text" name="tel_no" id="tel_no"></td>
  </tr>
  <tr>
    <td colspan="2">Administrator/Beneficial User<input type="text" name="administrator" id="owner4"></td>
    <td>T.I.N.<input type="text" name="admin_tin" id="admin_tin"></td>
  </tr>
  <tr>
    <td colspan="2">Address
      <input type="text" name="admin_address" id="admin_address"></td>
    <td>Telephone No.
      <input type="text" name="admin_tel_no" id="admin_tel_no"></td>
  </tr>
  <tr>
    <td width="18%">Location of Property </td>
    <td colspan="2"><input name="locationofproperty" type="text" id="locationofproperty" size="80"></td>
    </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="2"><div style="font-size:12px;">(Number and Street)<span style="padding-left:60px">(Barangay/District)</span><span style="padding-left:60px">(Municipality & Province/City)</span></div></td>
    </tr>
  <tr>
    <td colspan="2">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
            </table>
        
        
        <br>
        <br>
        <br>
        <!-- END BODY-->   
        <div class="wrapper"></div>
              </div>
        </div>
</form>
      </div>
    </div>

</div>
<!-- content ends -->
<!-- footer begins -->
<div id="footer">
   <a href="http://validator.w3.org/check?uri=referer">Copyrights © 2012</a> | <a href="http://guinobatan.gov.ph/index.php/guinobatan/index">Municipality of Guinobatan</a>. | All rights reserved. 
      </p></div>
<!-- footer ends -->
</div>
</div>
</body>
</html>